<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/static/common/taglibs.jsp" %>
<div class="page">
    <div class="pageContent">

        <form method="post" action="${ctx}/ring/save/"
           class="pageForm required-validate" 
		onsubmit="return iframeCallback(this, dialogAjaxDone)"
		enctype="multipart/form-data" >
		<input type="hidden" name="id" value="${id }">
		<input type="hidden" name="typeId" value="${typeId }">
            <div class="pageFormContent" layoutH="68">
            
            	<div class="unit">
                    <label>名称：</label>
                    <input type="text" name="name" value="${ring.name }"/>
                </div>
                
                <div class="unit">
                    <label>款号：</label>
                    <input type="text" name="no" value="${ring.no }"/>
                </div>
                
                <div class="unit">
                    <label>主钻重量：</label>
                    <table>
                    	<tr>
                    		<td><input type="text" name="mainBeginWeigh" 
                    		<c:if test="${ring.mainBeginWeigh!=0 }">value="${ring.mainBeginWeigh }" </c:if>
                    		size="10"/></td>
                    		<td>-----</td>
                    		<td><input type="text" name="mainEndWeigh" 
                    		<c:if test="${ring.mainEndWeigh!=0 }">value="${ring.mainEndWeigh }" ></c:if>
                    		size="10"/></td>
                    	</tr>
                    </table>
                </div>

				<div class="unit">
                    <label>主钻形状：</label>
                    <input type="text" name="mainShape" value="${ring.mainShape }"/>
                </div>
                
                <div class="unit">
                    <label>金重：</label>
                    <input type="text" name="goldWeight" 
               <c:if test="${ring.goldWeight!=0 }">     value="${ring.goldWeight }"</c:if>/>
                </div>
                
                 <div class="unit">
                    <label>材质：</label>
                    <input type="text" name="quality" value="${ring.quality }"/>
                </div>
                
                <div class="unit">
                    <label>副钻总重量：</label>
                    <input type="text" name="minorWeigh" 
                    <c:if test="${ring.minorWeigh!=0 }">value="${ring.minorWeigh }"</c:if>/>
                </div>
                
                <div class="unit">
                    <label>指圈：</label>
                    <table>
                    	<tr>
                    		<td><input type="text" name="sizeBegin" 
                    		<c:if test="${ring.sizeBegin!=0 }">value="${ring.sizeBegin }" </c:if>
                    		size="10"/></td>
                    		<td>-----</td>
                    		<td><input type="text" name="sizeEnd" 
						<c:if test="${ring.sizeEnd!=0 }">value="${ring.sizeEnd }" </c:if> size="10"/></td>
                    	</tr>
                    </table>
                    
                </div>

				<div class="unit">
                    <label>价格：</label>
                    <input type="text" name="price" 
                    <c:if test="${ring.price!=0 }"> value="${ring.price }"</c:if >/>
                </div>
				
                <div class="unit">
                    <label>小图：</label>
                    <input type="file" name="file"/>
                </div>
                
                <div class="unit">
                    <label>大图1：</label>
                    <input type="file" name="file1"/>
                </div>
                
                <div class="unit">
                    <label>大图2：</label>
                    <input type="file" name="file2"/>
                </div>
                
                <div class="unit">
                    <label>大图3：</label>
                    <input type="file" name="file3"/>
                </div>
                
                <div class="unit">
                    <label>大图4：</label>
                    <input type="file" name="file4"/>
                </div>


            </div>
            <div class="formBar">
                <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit" id="btn" class="btn">提交</button>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="button">
                            <div class="buttonContent">
                                <button type="button" class="close">取消</button>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </form>
    </div>
</div>

